home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 507 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: oly.olympic.net!poke
  2. From: poke@oly.olympic.net (Charlie Chaplin  )
  3. Newsgroups: comp.lang.c
  4. Subject: Spawn and exit...
  5. Date: 5 Jan 1996 23:35:08 GMT
  6. Organization: Olympic Net, L.L.C.
  7. Message-ID: <4ckcjc$e84@oly.olympic.net>
  8. NNTP-Posting-Host: oly.olympic.net
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I am having trouble writing a program that spwans my windows 3.11 then 
  12. kills itself. I realize that windows 3.11 would be a child process. The 
  13. parent process takes up so much memory that it slows my windows down too 
  14. much. The program that I wrote was a result of my father's complaints. 
  15. Whenever I get into debugging the computer I rem out the win statement in 
  16. the autoexec.bat, because I tend to reboot the computer a lot when I'm 
  17. debugging. This is a very long and tedious process if windows has to load 
  18. up every time(yes I know about F5, read on and you will understand). The 
  19. problem is, I forget to unrem the win statement, and my 
  20. semi-literate father can't figure out how to get word 6.0 working(Yes 
  21. I've told hime a million times to just type WIN), and he starts 
  22. hollering at me. If I hit F5 during reboot I don't get the path 
  23. statement the memory managers and the config.sys, which are necessary for 
  24. what I'm doing. So I wrote a program called win.exe and I placed it in my 
  25. root directory. WHen the autoexec.bat gets down to the win statement it 
  26. executes the local win.exe file. win.exe pauses the computer for about 4 
  27. seconds and then spawns windows 3.11. If any key is pressed during the 4 
  28. second pause the program exits and I am left with a DOS prompt. I just 
  29. need help getting my program to kill itself if it ends up spawning 
  30. windows 3.11, win.exe takes up almost 80K of memory when it's resident. I 
  31. have also tried the system() function, it does the same thing.
  32.  
  33. Please e-mail me your response, I don't frequent this group much. Thanks...
  34.  
  35. --
  36.  ---------------------------------------------------------------------------
  37. | \\\\\    |Me wonders if ASCII self-portraits are even reasonably accurate?|
  38. |  .  .     ----------------------------------------------------------------
  39. |    >     |Favorite quote I once saw:                                      |
  40. |    =     |    "You should be arrested for posession of stupidity with     |
  41. | "Poke"   |        intent to distribute..."                            |
  42.  ---------- ----------------------------------------------------------------
  43. | Store it in a cool dry place...                                           |
  44. |                          -Travelling Wilburys                             |
  45. |                                                                           |
  46. | E-Mail: 'r' or poke@olympic.net or poke@oz.net                            |
  47.  ---------------------------------------------------------------------------
  48.